// 封装关于用户的请求
import http from '@/utils/http'

// 用户登录
export function onLogin (mobile, code) {
  return http({
    method: 'POST',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
}

// 获取当前用户信息
export function reqGetProfile () {
  return http({
    method: 'GET',
    url: '/v1_0/user/profile'
  })
}
